package cn.bonoon.controllers.smm;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.bonoon.controllers.parsers.UserPanelParser;
import cn.bonoon.core.plugins.LogService;
import cn.bonoon.entities.LogEntity;
import cn.bonoon.kernel.menus.ModuleManager;
import cn.bonoon.kernel.support.services.UserService;
import cn.bonoon.kernel.web.controllers.AbstractGridController;
import cn.bonoon.kernel.web.controllers.PanelParser;

@Controller
@RequestMapping("s/user/operate")
public class UserLogController extends AbstractGridController<LogEntity, LogItem> {

	@Autowired
	public UserLogController(LogService service) {
		super(service);
	}

	@Override
	public Class<LogItem> itemClass() {
		return LogItem.class;
	}

	@Override
	protected PanelParser buildParser(ModuleManager moduleManager, UserService userService) {
		return new UserPanelParser(moduleManager);
	}
}
